package com.aretias.jkholdings.model;

public class BoardParam extends Board{
	
	public static final int PAGE_SIZE = 10;
	public static final int PAGE_BLOCK_SIZE = 10;
	
	private int pageNumber = 0;
	private int startIndex;
	private int endIndex;
	
	public void setLimitParam(){
		getStartIndex();
		getEndIndex();
	}
	
	public int getPageNumber() {
		return pageNumber;
	}
	public void setPageNumber(int pageNumber) {
		this.pageNumber = pageNumber;
	}
	public int getStartIndex() {
		startIndex = pageNumber * PAGE_SIZE; 
		return startIndex;
	}
	public void setStartIndex(int startIndex) {
		this.startIndex = startIndex;
	}
	public int getEndIndex() {
		endIndex = PAGE_SIZE; 
		return endIndex;
	}
	public void setEndIndex(int endIndex) {
		this.endIndex = endIndex;
	} 
	
}
